package service.impl;

import mapper.MenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Menu;
import service.IMenuService;

import java.util.List;

@Service
public class MenuServiceImpl implements IMenuService {
    @Autowired
    private MenuMapper menuMapper;
    @Override
    public List<Menu> getMenusByRoleId(Integer userRoleId) {
        List<Menu> menus = menuMapper.selectByUserRoleId(userRoleId);
        return menus;
    }
}
